package com.jzo2o.customer.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.AgencyCertificationAuditResDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;

/**
 * 机构认证审核 服务接口
 */
public interface IAgencyCertificationAuditService extends IService<AgencyCertificationAudit> {

    /**
     * 机构端 - 查询最新驳回原因
     *
     * @return 最新驳回原因
     */
    RejectReasonResDTO getLatestRejectReason();

    /**
     * 运营端 - 审核机构认证-分页查询
     * @param agencyCertificationAuditPageQueryReqDTO 查询参数
     * @return 机构认证审核列表
     */
    PageResult<AgencyCertificationAuditResDTO> queryPage(AgencyCertificationAuditPageQueryReqDTO agencyCertificationAuditPageQueryReqDTO);

    /**
     * 运营端 - 审核机构认证信息
     * @param id                  认证记录id
     * @param certificationStatus 认证状态
     * @param rejectReason        拒绝原因
     */
    void audit(Long id, Integer certificationStatus, String rejectReason);
}
